package com.dingreading.cloud.soms.service;

import com.dingreading.cloud.common.util.PageUtil;
import com.dingreading.cloud.soms.entity.CaClassrooms;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.Date;
import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface CaClassroomsService extends IService<CaClassrooms> {

    Page<CaClassrooms> pageList(PageUtil pageUtil, String storeUid, String keyword, Integer enabled);

    List<CaClassrooms> getByStoreUid(String storeUid, String keyword, Integer enabled);

    CaClassrooms getBean(String storeUid, Long id);

    boolean haveName(String storeUid, Long id, String name);

    int dropBean(String storeUid, Long id);

    int updateEnabled(String storeUid, Long id, Integer enabled, String staffUid, String staffName, Date time);

    // 排课-按指定id置顶排序
    List<CaClassrooms> getByStoreUidOrderTopRoomId(String storeUid, Long orderByRoomId);

    void updateUid(Long id, String uid);

    List<CaClassrooms> listByStoreUidAndRoomNameIn(String storeUid, List<String> roomNameList);
    List<CaClassrooms> listByStoreUidAndRoomUidIn(String storeUid, List<String> roomUidList);
}
